﻿@model ITS.Website.Models.AdminHompageViewModel
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>
    Admin page</h2>
<div>
</div>
<div>
    <table>
        @foreach (var item in Model.ContentCategories)
        {
            <tr>
                <td>
                    @item.Name
                </td>
                <td>
                    @Html.ActionLink("Create item", "CreateContentItem", "Content", new { id = item.CategoryID }, null)
                    @Html.ActionLink("Manage", "ManageContent", "Content", new { id = item.CategoryID }, null)
                </td>
            </tr>
        }
    </table>
</div>
